import math

#  1
str = '   I love china   '
str = str.strip()
print(str)
str = str.replace('c','C')
print(str)

# # 2
# def he(n):
#     sum = 0
#     for i in range(n+1):
#         sum += i
#     return sum
# sum = he(10)
# print(sum)
#
# 3
num = 10
if (num % 4 == 0) and (num % 6 == 0):
    print('true')
else:
    print('false')

# # 4
# class NvShen:
#
#     def __init__(self,height,weight):
#         self.height = height
#         self.weight = weight
#
#     def get_bmi(self):
#         bim = self.weight / math.pow(self.height,2)
#         return round(bim,2)
#
# lily = NvShen(1.68,44)
# print(lily.get_bmi())
#
# # 5
# sum = 0
# for i in range(1,51):
#     if i % 3 == 0:
#         sum += i
# print(sum)
#
# # 6
# def isRun(year):
#     if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
#         return True
#     else:
#         return False
#
# year = 2000
# result = "闰年" if isRun(year) else "平年"
# print(result)
#
# # 7
# str = 'abcdefghijklmn'
# str = str[::-1]
# print(str)
#
# # 8
# weight = eval(input('请输入您的体重：'))
# if weight > 75:
#     print('肥胖')
# elif weight > 60:
#     print('中等')
# else:
#     print('正常')

